{% load photologue_tags %}
{% load auth_comment %}

<div id="{{object.slug}}" class="object">
    <div id="{{object.slug}}Header" class="objectHeader">
        <h2 class=objectTitle>{{ object.title }}</h2>
            <span id="{{object.slug}}Details" class="objectDetails">
    
                {% if object.date_time %}
                    posted 
                    {{ object.date_time|date:"D d M Y" }} 
                {% endif %}

                {% if object.date_added %}
                    added 
                    {{ object.date_added|date:"D d M Y" }}
                {% endif %}
    
    </div>

    <div id="{{object.slug}}Content" class="gallery-photo figure objectContent">
        <a href="/controlled/{{object.slug}}" target="_blank"><img src="{{ object.get_small_url }}" alt="{{ object.title }}"/></a>
                <div id="{{object.slug}}Copyright" class="copyright">
                        {{ object.copyright }}
                </div>
                <div id="{{object.slug}}Caption" class="caption">              
                        {% if object.caption %}
                        {{ object.caption }}  <br />
                        {% else %}
                        [No caption yet]
                        {% endif %}

                </div>


    </div>
    
    <div class="related">
            {% if object.public_galleries %}
            <br />
            
            
            <h3>This photo is found in the following galleries:</h3>

            {% for gallery in object.public_galleries %}
            <table class="relatedGallery">
                <tr>
                    <td colspan=2><a href="{{ gallery.get_absolute_url }}">{{ gallery.title }}</a> </td>
                </tr>
                <tr>
                    <td>{%previous_in_gallery object gallery%} </td>
                    <td><br /> {%next_in_gallery object gallery%} </td>
                </tr>
            </table>
            {% endfor %}
            
            {% endif %}
    </div>
    <div>
    <p>
    </p>
    </div>
